document.write(location);
var origin=location.origin;
var anchor=location.hash;
var host=location.host;
var hostname=location.hostname;
var href=location.href;
var path=location.pathname;
var port=location.port;
var protocol=location.protocol;
var query=location.search;

location.href='https://www.baidu.com';
location.assign(href);
location.reload();
location.replace(href);
var address=location.toString();
